[VTPM] Add a missing initialization of a state variable in the TIS
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 13:36:58 +0000 (13:36 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 15 Feb 2007 13:36:58 +0000 (13:36 +0000)
device model so that the first response received after a resume is not
aborted.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/ioemu/hw/tpm_tis.c

index 452516c1824e012aded0a35bb8b3663636b9f8bb..926a69792393209e75b9014fda40ce13117fc230 100644 (file)
@@ -881,6 +881,7 @@ void tpm_tis_init(SetIRQFunc *set_irq, void *opaque, int irq)
     s->Transmitlayer = -1;
     s->tpmTx.fd[0] = -1;
     s->tpmTx.fd[1] = -1;
+    s->aborting_locty = NO_LOCALITY;
 
     tpm_initialize_instance(s, s->vtpm_instance);
     memset(s->buffer.buf,0,sizeof(s->buffer.buf));